package com.njtoyo.taxi.admin.mongo.entity.primary;

import cn.hutool.core.date.DateUtil;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Document(collection = "driver_grab_call_info")
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class DriverGrabCallInfoMongo {

    /**
     * ID
     */
    @Id
    @JsonIgnore
    private String id;

    /**
     * 呼叫ID
     */
    private Long callId;

    /**
     * 司机ID
     */
    private Long driverId;

    /**
     * 车辆ID
     */
    private Long taxiId;

    /**
     * 抢单时间
     */
    private Date grabTime;

    /**
     * 创建时间字符串
     */
    private String createdAtStr;


}
